package com.oss.job;

import org.joda.time.DateTime;
import org.quartz.JobExecutionContext;

import com.eova.common.base.BaseModel;
import com.jfinal.core.Controller;
import com.mysgr.zoom.model.DataLog;

import org.joda.time.DateTime;

/**
 * 每分钟执行
 *
 * @author Jieven
 * @date 2014-7-7
 */
public class EveryMinJob extends AbsJob {

	@Override
	protected void process(JobExecutionContext context) {
        int type;
		System.out.println("每分钟任务test");

        type =1;
        DataLog dl = new DataLog();
        // TYPE
        dl.set("log_id","l1212" );
        dl.set("dev_id","dev01" );
        type = 1231;
        // UID
        dl.set("data_addr", "4001");
        dl.set("data_val", "10.24");
        dl.set("param_id", "1024");
        dl.set("log_date",  DateTime.now().toString("yyyy-MM-dd"));
        dl.set("log_time",  DateTime.now().toString("yyyy-MM-dd HH:mm:ss"));
        // IP
        dl.save();
        
	}

}
